


const baseResponse = { 
  success:(result,code:number=0,message:string='success')=> { 
    return () => { 
      return {
        code,
        message,
        result
      }
    }
  },
  fail: ( result,message: string = 'fail') => {
    return {
      code:-1,
      message,
      result
    }
  }
}

export default baseResponse